package com.euq.service.Impl;

import com.euq.entity.Notice;
import com.euq.mapper.NoticeMapper;
import com.euq.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    private NoticeMapper noticeMapper;
    @Override
    public List<Notice> listAll() {
        return noticeMapper.listAll();
    }
    @Override
    public Notice findByTitle(String title) {
        return noticeMapper.findByTitle(title);
    }
}
